put the short name of this background into bkgdName
put the number of background buttons into bkgdButton
repeat with counter = 1 to bkgdButton
set autohilite of background button counter to true
end repeat
--
-- cycle through all the cards of this background
--
put the number of cards of this background into numCard
repeat numCard times
put the number of card buttons into numButton
repeat with counter = 1 to numButton
set autohilite of card button counter to true
end repeat
go to next card
end repeat
end repeat
end mouseUp
-- part 2 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=462 top=25 right=60 bottom=501
-- title width / last selected line: 0
-- icon id / first selected line: 20098 / 20098
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Home
----- HyperTalk script -----
on mouseUp
visual effect iris close
go "home"
end mouseUp
-- part 3 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=26 top=87 right=329 bottom=500
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 4 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=173 top=36 right=75 bottom=221
-- title width / last selected line: 0
-- icon id / first selected line: 19381 / 19381
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
end mouseUp
-- part contents for card part 3
----- text -----
The Auto Highlight button will ask you for the name of a stack. (It suggests "Copy of ..." — please don't use this on something you haven't backed up!) It then goes to that stack, looping through each background, and each card of each background, setting autohilite on all buttons to
"true." Buttons look better that way: positive visual confirmation that you clicked something.
Note on changes: my apologies to anyone who was inconvenienced by two bugs in the first version. (1) Clicking Cancel had the effect of autohighlighting the current stack. (2) If the stack had only one background, the script went into a loop. (I hope anyone who's found that remembered to hit command-period!) Both problems have been fixed. Please let me know if you discover any more.